package com.qg.exception;

public class QgException extends RuntimeException {

    public int getCode() {
        return code;
    }

    private int code;

    public QgException() {
        super();
    }

    public QgException(String message) {
        super(message);
    }

    public QgException(String message, Throwable cause) {
        super(message, cause);
    }

    public QgException(Throwable cause) {
        super(cause);
    }

    public QgException(CommonException ex){
        this(ex.getMessage());
        this.code = ex.getCode();
    }

}
